import Cookies from 'js-cookie'

export function getToken(){
    return Cookies.get("Token")
}

export function getrefreshToken() {
    return Cookies.get("refreshToken")
}

export function setToken(token){
    return Cookies.set("Token", token, {expires: 1/12})
}

export function setrefreshToken(token) {
  return Cookies.set("refreshToken", token, {
    expires: 7
  })
}

export function removeToken(){
    return Cookies.remove("Token")
}

export function removerefreshToken() {
  return Cookies.remove("refreshToken")
}